package com.tang.service.engine;


import com.tang.service.logic.LogicFilter;
import com.tang.service.logic.impl.*;
import lombok.Data;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


/**
 * 规则配置类
 * 
 * @author Tang
 */
@Data
public class EngineConfig {

    static Map<String, LogicFilter> logicFilterMap;

    static {
        logicFilterMap = new ConcurrentHashMap<>();
        logicFilterMap.put("carLicenceFilter", new CarLicenseFilter());
        logicFilterMap.put("carBlackFilter", new CarBlackFilter());
        logicFilterMap.put("carSpecialFilter", new CarSpecialFilter());
        logicFilterMap.put("carMonthlyFilter", new CarMonthlyFilter());
        logicFilterMap.put("carOverdueFilter", new CarOverdueFilter());
    }

}
